//
//  Constants.m
//  NetEaseFinancial
//
//  Created by 吴玉峰 on 9/1/15.
//  Copyright (c) 2015 吴玉峰. All rights reserved.
//

#import "NFSConstants.h"

// Build类型
#define BUILD_TYPE_SIT 0 // 系统集成测试/System Integration Test
#define BUILD_TYPE_UAT 1 // 用户验收测试/User Acceptance Test
#define BUILD_TYPE_PRE_PRODUCTION 2 // 预生产
#define BUILD_TYPE_PRODUCTION 3 // 生产
#define BUILD_TYPE_MUAT 4 // 更多的用户验收测试/More User Acceptance Test

// 访问NFS前端HTML5对应的HOST
#define NFS_HOST_SIT @"http://172.16.1.106"
#define NFS_HOST_UAT @"http://172.16.1.108"
#define NFS_HOST_PRE_PRODUCTION @"http://106.2.33.91"
#define NFS_HOST_PRODUCTION @"https://www.fc18.com.cn"
#define NFS_HOST_MUAT @"http://172.16.1.85"

// 访问NFS后台服务器对应的HOST
#define NFS_API_HOST_SIT NFS_HOST_SIT
#define NFS_API_HOST_UAT NFS_HOST_UAT
#define NFS_API_HOST_PRE_PRODUCTION NFS_HOST_PRE_PRODUCTION
#define NFS_API_HOST_PRODUCTION NFS_HOST_PRODUCTION
#define NFS_API_HOST_MUAT NFS_HOST_MUAT


// 设置build类型
#define BUILD_TYPE BUILD_TYPE_PRODUCTION

// 系统集成测试
#if BUILD_TYPE == BUILD_TYPE_SIT
#define NFS_HOST NFS_HOST_SIT
#define NFS_API_HOST NFS_API_HOST_SIT

// 用户验收测试
#elif BUILD_TYPE == BUILD_TYPE_UAT
#define NFS_HOST NFS_HOST_UAT
#define NFS_API_HOST NFS_API_HOST_UAT

// 预生产
#elif BUILD_TYPE == BUILD_TYPE_PRE_PRODUCTION
#define NFS_HOST NFS_HOST_PRE_PRODUCTION
#define NFS_API_HOST NFS_API_HOST_PRE_PRODUCTION

// 生产
#elif BUILD_TYPE == BUILD_TYPE_PRODUCTION
#define NFS_HOST NFS_HOST_PRODUCTION
#define NFS_API_HOST NFS_API_HOST_PRODUCTION

// 更多的用户验收测试
#elif BUILD_TYPE == BUILD_TYPE_MUAT
#define NFS_HOST NFS_HOST_MUAT
#define NFS_API_HOST NFS_API_HOST_MUAT

#endif

// 已经替换为富聪社在app store中对应的真正的app id
#define APP_ID_IN_APP_STORE @"id1055272293"

#define FCAPP_CATEGORY NFS_HOST @"/fcapp_v2"

#define NFS_API_END_POINT_URL NFS_API_HOST @"/aiaf/sgw"

NSString *const kNfsHost = NFS_HOST;
NSString *const KNfsApiEndPointUrl = NFS_API_END_POINT_URL;
NSString *const kHomeUrl = (FCAPP_CATEGORY @"/homePage/index.html");
NSString *const kProductUrl = (FCAPP_CATEGORY @"/category/Category.html");
NSString *const kInformationUrl = (FCAPP_CATEGORY @"/Dashboard/info/InfoList.html");
NSString *const kAssetUrl = (FCAPP_CATEGORY @"/Dashboard/Dashboard.html");

NSString *const kAppUrlInAppStore = (@"https://itunes.apple.com/app/" APP_ID_IN_APP_STORE);

@implementation NFSConstants

@end
